package com.vogue.supplymall.payment.dto;

import java.io.Serializable;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class PursePayInputParameter extends ValidationDTO implements Serializable{

	/**
     * 
     */
    private static final long serialVersionUID = -2412634499505175135L;

    /**
	 * 验证有效值的字段集合
	 */
	@SuppressWarnings("serial")
	public static final Map<String, List<Object>> valueValidityMap = new HashMap<String, List<Object>>() {{
		 put("paytypeid", Arrays.asList((new Integer[]{20})));
		 put("product", Arrays.asList((new String[]{"600000","700000"})));
	}};
	
	/**
	 * 验证必填字段的集合
	 */
	public static final List<String> requiredList = Arrays.asList((new String[]{
		"paytypeid", "orderid", "storeid", "money", "product", "redirectUrl"
	}));
	
	/**
	 * 支付方式（20：爱农网页支付）
	 */
	private Integer paytypeid = 20;
	
	/**
	 * 订单id
	 */
	private String orderid;
	
	/**
	 * 	门店id
	 */
	private String storeid;
	
	/**
	 * 价格
	 */
	private Double money;
	
	/**
	 * 风行云供应链:600000,食尚购:700000
	 */
	private String product = "700000";
	
	/**
	 * 支付成功页面重定向地址
	 */
	private String redirectUrl = "http://192.168.7.70:8088/x5/UI2/v_/supplyShop/container.w";
	
    /**
     * 支付方门店mcid
     */
    private String paystoreid;
    
    /**
     * 客户端IP地址
     */
    private String clientIp;
    
	public Integer getPaytypeid() {
		return paytypeid;
	}

	public void setPaytypeid(Integer paytypeid) {
		this.paytypeid = paytypeid;
	}

	public String getOrderid() {
		return orderid;
	}

	public void setOrderid(String orderid) {
		this.orderid = orderid;
	}

	public String getStoreid() {
		return storeid;
	}

	public void setStoreid(String storeid) {
		this.storeid = storeid;
	}

	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	public String getProduct() {
		return product;
	}

	public void setProduct(String product) {
		this.product = product;
	}

	public String getRedirectUrl() {
		return redirectUrl;
	}

	public void setRedirectUrl(String redirectUrl) {
		this.redirectUrl = redirectUrl;
	}

	/**
     * @return 支付方门店mcid
     */
    public String getPaystoreid() {
        return paystoreid;
    }

    /**
     * 设置  支付方门店mcid
     * @param paystoreid 支付方门店mcid
     */
    public void setPaystoreid(String paystoreid) {
        this.paystoreid = paystoreid;
    }

    /**
     * @return 客户端IP地址
     */
    public String getClientIp() {
        return clientIp;
    }

    /**
     * 设置 客户端IP地址
     * @param clientIp 客户端IP地址
     */
    public void setClientIp(String clientIp) {
        this.clientIp = clientIp;
    }
    
	@Override
	List<String> requiredFieldList() {
		return requiredList;
	}

	@Override
	Map<String, List<Object>> valueValidityMap() {
		return valueValidityMap;
	}

}
